@font-face {
    font-family: 'iconfont';  /* Project id 2750508 */
    src: url('//at.alicdn.com/t/font_2750508_tro9v9vc1w.woff2?t=1629185257356') format('woff2'),
         url('//at.alicdn.com/t/font_2750508_tro9v9vc1w.woff?t=1629185257356') format('woff'),
         url('//at.alicdn.com/t/font_2750508_tro9v9vc1w.ttf?t=1629185257356') format('truetype');
}

.iconfont{
    font-family: 'iconfont';
}

* {
  margin: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

.wrapper {
  width: 100%;
  height: 100%;
  background-color: #fbf8f1;
}

.g-main {
  width: 100%;
  height: 100%;
  /* background-color: aqua; */
  display: flex;
  justify-content: center;
}

.g-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  width: 340px;
}

.g-title {
  display: flex;
  justify-content: space-between;
  height: 50px;
}

.g-title > span {
  width: 100px;
  height: 50px;
  text-align: center;
  font-size: 36px;
  font-weight: bold;
}

.g-scores {
  width: 220px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  flex: 0 0 auto;
}

.g-score-box {
  width: 100px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #bbada0;
  border-radius: 10px;
}

.g-score-box > span:first-child {
  color: #cfc1b6;
  font-size: 12px;
}

.g-score-box > span:last-child {
  color: #fef3e9;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
}

.g-controls {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 0 0;
}

.g-c-rf {
  width: 100px;
  display: flex;
  justify-content: space-between;
}

.g-bt {
  width: 35px;
  height: 30px;
  border-radius: 10px;
  background-color: #bbada0;
  color: #fef3e9;
  line-height: 30px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
}

.g-bt-dis {
color: #73695f;;
  background-color: #aaa;
  cursor: not-allowed;
}

.g-bt-highlight {
  background-color: #f8d664;
}

.g-cross {
  margin: 10px 0 0 0;
  padding: 5px 0;
  width: 340px;
  height: 340px;
  background-color: #bbada0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
  position: relative;
}

.g-bRow {
  display: flex;
  justify-content: space-evenly;
}

.g-blk {
  width: 80px;
  height: 80px;
  /* line-height: 62px;
    text-align: center; */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d6cdc4;
  border-radius: 10px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: bold;

  transition: all .3s;
}

@keyframes blast {
    0%{
        transform: scale(.75);
    }
    100%{
        transform: scale(1);
    }
}

.g-2,
.g-4 {
  color: #73695f;
}

.g-2 {
  background-color: #eee4da;
}

.g-4 {
  background-color: #ece0ca;
}

.g-8,
.g-16,
.g-32,
.g-64,
.g-128,
.g-256,
.g-512,
.g-1024,
.g-2048,
.g-over {
  color: #fbf8f1;
}
.g-2,
.g-4,
.g-8,
.g-16,
.g-32,
.g-64,
.g-128,
.g-256,
.g-512,
.g-1024,
.g-2048,
.g-over {
    animation: blast .5s forwards;
}

.g-8 {
  background-color: #f2b179;
}

.g-16 {
  background-color: #f59565;
}

.g-32 {
  background-color: #f57c5f;
}

.g-64 {
  background-color: #f65d3b;
}

.g-128 {
  background-color: #edce71;
}

.g-256 {
  background-color: #edcd60;
}

.g-512 {
  background-color: #edcd60;
}

.g-1024 {
  background-color: #e7c34b;
}

.g-2048 {
  background-color: #eec12e;
}

.g-over {
  background-color: #4f3ee7;
  font-size: 18px;
}

.g-c-info {
  position: absolute;
  z-index: 3;
  display: flex;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
}

.g-c-greet {
  color: #73695f;
}

.g-c-win {
  color: green;
}

.g-c-hid {
  visibility: hidden;
}

.g-c-nn {
  display: none;
}

@media (min-width: 768px) {
  .g-main {
    width: 750px;
    margin: 0 auto;
  }

  .g-wrapper {
    width: 680px;
  }

  .g-title {
    height: 100px;
  }

  .g-title > span {
    width: 200px;
    height: 100px;
    text-align: center;
    font-size: 72px;
    font-weight: bold;
  }

  .g-scores {
    width: 440px;
    height: 100px;
  }

  .g-score-box {
    width: 200px;
    height: 100px;
  }

  .g-score-box > span:first-child {
    font-size: 24px;
  }

  .g-score-box > span:last-child {
    font-size: 36px;
  }

  .g-cross {
    width: 680px;
    height: 680px;
  }

  .g-c-rf {
    width: 200px;
  }

  .g-bt {
    width: 70px;
    height: 60px;
    line-height: 60px;
    font-size: 48px;
  }

  .g-blk {
    width: 160px;
    height: 160px;
    font-size: 48px;
  }
}
